import 'dart:convert';

import 'package:mziot/generated/json/add_device_entity.g.dart';
import 'package:mziot/generated/json/base/json_field.dart';

@JsonSerializable()
class AddDeviceEntity {
  int? id;
  String? deviceName;
  bool? isConfigNet;
  Map? command;

  AddDeviceEntity();

  factory AddDeviceEntity.fromJson(Map<String, dynamic> json) => $AddDeviceEntityFromJson(json);

  Map<String, dynamic> toJson() => $AddDeviceEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
